#include "StdAfx.h"
#include "FreeSpaceBlockCollection.h"

using namespace Adaptive::Foundation::IO;

/*--------------------------------------------------------------------------------
 * Constructor / Dispose / Destructor Methods
 *------------------------------------------------------------------------------*/
#pragma region Constructor / Dispose / Destructor Methods

FreeSpaceBlockCollection::FreeSpaceBlockCollection() : GenericCollectionBase()
{
}

FreeSpaceBlockCollection::~FreeSpaceBlockCollection() 
{
}

#pragma endregion

/*--------------------------------------------------------------------------------
 * Protected Methods / Functions
 *------------------------------------------------------------------------------*/
#pragma region Protected Methods / Functions

String^ FreeSpaceBlockCollection::GetKeyForObject(FreeSpaceBlock^ itemToGetKeyFor)
{
	if (itemToGetKeyFor != nullptr)
		return itemToGetKeyFor->StartCluster.ToString();
	else
		return String::Empty;
}

#pragma endregion
